<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 任务详情</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link href="css/plugins/iCheck/custom.css" rel="stylesheet">

    <link href="css/plugins/chosen/chosen.css" rel="stylesheet">

    <link href="css/plugins/colorpicker/css/bootstrap-colorpicker.min.css" rel="stylesheet">

    <link href="css/plugins/cropper/cropper.min.css" rel="stylesheet">

    <link href="css/plugins/switchery/switchery.css" rel="stylesheet">

    <link href="css/plugins/jasny/jasny-bootstrap.min.css" rel="stylesheet">

    <link href="css/plugins/nouslider/jquery.nouislider.css" rel="stylesheet">

    <link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">

    <link href="css/plugins/ionRangeSlider/ion.rangeSlider.css" rel="stylesheet">
    <link href="css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">

    <link href="css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">

    <link href="css/plugins/clockpicker/clockpicker.css" rel="stylesheet">


</head>

<body class="gray-bg" onload="timenow()">
<div class="row">
    <div class="col-sm-12">
        <div class="wrapper wrapper-content animated fadeInUp">
            <div class="ibox">
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="m-b-md">
                                <a href="#" class="btn btn-white btn-xs pull-right" onclick="window.location.href='/epidMissionList';">返回</a>
                                <h2 th:text="'任务编号:' + ${epidMissionRecordBean.getMissionId()}"></h2>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-5">
                            <dl class="dl-horizontal">

                                <dt>流调对象id：</dt>
                                <dd th:text="${epidMissionRecordBean.getPatientId()}">XXXXX</dd>
                                <dt>流调对象姓名：</dt>
                                <dd th:text="${epidMissionRecordBean.getPatientName()}">XXXXX</dd>
                            </dl>
                        </div>
                        <div class="col-sm-7" id="cluster_info">
                            <dl class="dl-horizontal">

                                <dt>流调地区：</dt>
                                <dd th:text="${epidMissionRecordBean.getAssignPlace()}">XXXXX</dd>
                                <dt>疾病名称：</dt>
                                <dd th:text="${epidMissionRecordBean.getDiseaseId()}">XXXXX</dd>
                            </dl>
                        </div>
                    </div>
                    <form method="post" th:action="@{'/epidMissionPublish?missionId='+${epidMissionRecordBean.getMissionId()}}">
                        <div class="row">
                            <div class="col-sm-12">
                                    <div class="form-group">
                                        <label class="col-sm-7 control-label">模板选择</label>

                                        <div class="col-sm-10">
                                            <select class="form-control m-b" name="templateId" >
                                                <option th:each="t:${epidTemplateBeans}" th:text="${t.getTemplateName()}" th:value="${t.getEpidTemplateId()}"></option>
                                            </select>
                                        </div>
                                    </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="form-group" id="data_1">
                                        <label class="font-noraml" >时间选择</label>
                                            <input type="date" class="form-control"  value="2022-3-1" name="time1">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="form-group">
                                    <label class="col-sm-7 control-label">流调人员选择</label>

                                    <div class="col-sm-10" >
                                        <select class="form-control m-b" name="staffId">
                                            <option th:each="s:${staffInfoBeans}" th:text="${s.getStaffName()}" th:value="${s.getStaffId()}"></option>
                                        </select>
                                    </div>


                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-12">
                                <button type="submit" class="btn btn-white btn-xs pull-right">确认发布</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>

<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>

<!-- Chosen -->
<script src="js/plugins/chosen/chosen.jquery.js"></script>

<!-- JSKnob -->
<script src="js/plugins/jsKnob/jquery.knob.js"></script>

<!-- Input Mask-->
<script src="js/plugins/jasny/jasny-bootstrap.min.js"></script>

<!-- Data picker -->
<script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>

<!-- Prettyfile -->
<script src="js/plugins/prettyfile/bootstrap-prettyfile.js"></script>

<!-- NouSlider -->
<script src="js/plugins/nouslider/jquery.nouislider.min.js"></script>

<!-- Switchery -->
<script src="js/plugins/switchery/switchery.js"></script>

<!-- IonRangeSlider -->
<script src="js/plugins/ionRangeSlider/ion.rangeSlider.min.js"></script>

<!-- iCheck -->
<script src="js/plugins/iCheck/icheck.min.js"></script>

<!-- MENU -->
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>

<!-- Color picker -->
<script src="js/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>

<!-- Clock picker -->
<script src="js/plugins/clockpicker/clockpicker.js"></script>

<!-- Image cropper -->
<script src="js/plugins/cropper/cropper.min.js"></script>

<script src="js/demo/form-advanced-demo.js"></script>


<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>


<script>
    $(document).ready(function () {

        $('#loading-example-btn').click(function () {
            btn = $(this);
            simpleLoad(btn, true)

            // Ajax example
            //                $.ajax().always(function () {
            //                    simpleLoad($(this), false)
            //                });

            simpleLoad(btn, false)
        });
    });

    function simpleLoad(btn, state) {
        if (state) {
            btn.children().addClass('fa-spin');
            btn.contents().last().replaceWith(" Loading");
        } else {
            setTimeout(function () {
                btn.children().removeClass('fa-spin');
                btn.contents().last().replaceWith(" Refresh");
            }, 2000);
        }
    }
</script>

<script>
    //定义一个方法
            function timenow(){
                //获取当前时间
                var d = new Date();
                //包装年月日的格式
                var a = d.getFullYear() + "-";
                //月是从零开始的所以得加1，并且判断月份是否大于等于10月，如果大于十月得个前面加零来跟格式匹配
                if (d.getMonth() + 1 >= 10 ){
                    var c = (d.getMonth() + 1) + "-";
                }
                else{
                    var c = "0" + (d.getMonth() + 1) + '-';
                }
                //不能使用getDay()方法得原因是因为他获取的是今天星期几，只有7天
                if (d.getDate() >= 10 ){
                    var n = d.getDate();
                }
                else{
            var n = "0" + d.getDate();
        }
        //给input设置id属性，抓取属性值改变value的值
        document.getElementsByName("time1")[0].value = a + c + n;
    }

</script>





</body>

</html>
